package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.dto.efoms.VideoRelationInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboVideoRelationInfoService;
import com.enjoyor.soa.traffic.core.efoms.mapper.IVideoRelationInfoMapper;
import com.enjoyor.soa.traffic.core.efoms.service.IVideoRelationInfoService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageVideoRelationInfoService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@SuppressWarnings("rawtypes")
@Service(version = "1.0.0", timeout = 4000)
public class DubboVideoRelationInfoService implements IDubboVideoRelationInfoService{

	@Autowired
	private ManageVideoRelationInfoService manageVideoRelationInfoService;
	
	@Override
	public ResultPojo getVideoRelationInfo(String videoRelationId) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.getVideoRelationInfo(videoRelationId);
	}

	@Override
	public ResultPojo getVideoRelationPage(String videoRelationId, String videoGroupId,String key,Page page) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.getVideoRelationPage(videoRelationId, videoGroupId,key,page);
	}

	@Override
	public ResultPojo getVideoRelationList(String videoRelationId, String videoGroupId,String key) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.getVideoRelationList(videoRelationId, videoGroupId,key);
	}

	@Override
	public ResultPojo insertVideoRelationInfo(List<VideoRelationInfoDto> rltList,String videoGroupId, String userName) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.insertVideoRelationInfo(rltList,videoGroupId, userName);
	}

	@Override
	public ResultPojo updateVideoRelationInfo(VideoRelationInfoDto videoRelationInfoDto, String userName) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.updateVideoRelationInfo(videoRelationInfoDto, userName);
	}

	@Override
	public ResultPojo deleteVideoRelationInfo(String videoGroupId,String userName) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.deleteVideoRelationInfo(videoGroupId, userName);
	}

	@Override
	public ResultPojo deleteVideoReletionByGroupIdAndVideoId(List<VideoRelationInfoDto> listVideoRelationInfoDto,String userName) {
		// TODO Auto-generated method stub
		return manageVideoRelationInfoService.deleteVideoReletionByGroupIdAndVideoId(listVideoRelationInfoDto, userName);
	}

}
